package com.cd.explain.jpa.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * @Description  数据记录表
 * @Author lqq
 * @Date 2025/5/11 10:51
 **/

//@Entity
@Data
@Table(name = "db_add_record",
        indexes = {
                @Index(name = "idx_link_class", columnList = "linkClass")})
@NoArgsConstructor
@AllArgsConstructor
public class AddRecord {

    //id
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    //类型
    @Column(name = "type")
    private String type;

    //content
    @Column(name = "content")
    private String content;

    //是否被使用
    @Column(name = "is_used")
    private Boolean isUsed;
}
